aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes/submission_matches/[match_id].svelte
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server/src/routes/submission_matches/[match_id].svelte')
-rw-r--r--web/pw-server/src/routes/submission_matches/[match_id].svelte31
1 files changed, 0 insertions, 31 deletions
diff --git a/web/pw-server/src/routes/submission_matches/[match_id].svelte b/web/pw-server/src/routes/submission_matches/[match_id].svelte
deleted file mode 100644
index 586b2c2..0000000
--- a/web/pw-server/src/routes/submission_matches/[match_id].svelte
+++ /dev/null
@@ -1,31 +0,0 @@
-<script lang="ts" context="module">
- export async function load({ page }) {
- const res = await fetch(`/api/submission_match_log/${page.params["match_id"]}`, {
- headers: {
- "Content-Type": "application/json",
- },
- });
-
- if (res.ok) {
- return {
- props: {
- matchLog: await res.text(),
- },
- };
- }
-
- return {
- status: res.status,
- error: new Error("failed to load match"),
- };
- }
-</script>
-
-<script lang="ts">
- import Visualizer from "$lib/components/Visualizer.svelte";
- export let matchLog: string;
-</script>
-
-<div>
- <Visualizer {matchLog} />
-</div>